#include "skilltree.h"
#include <stdlib.h>
#include <string.h>

// 构造一个示例技能树
BinTreeNode* skilltreeInit() {
    BinTreeNode* root = bintreeCreate("RootSkill");
    BinTreeNode* left = bintreeCreate("Attack");
    BinTreeNode* right = bintreeCreate("Defense");
    BinTreeNode* leftleft = bintreeCreate("Accelerate");
    BinTreeNode* leftright = bintreeCreate("More One Life");
    BinTreeNode* rightleft = bintreeCreate("Cross Wall");
    BinTreeNode* rightright = bintreeCreate("Unbeatable");
    bintreeInsertLeft(root, left);
    bintreeInsertRight(root, right);
    bintreeInsertLeft(left, leftleft);
    bintreeInsertRight(left, leftright);
    bintreeInsertLeft(right, rightleft);
    bintreeInsertRight(right, rightright);
    return root;
} 